package pojo;

import java.time.LocalDateTime;

/**
 * 公告实体类
 * 对应数据库表: gg
 */
public class Gg {
    private Integer id;              // 公告ID（主键自增）
    private String title;            // 公告标题
    private String content;          // 公告内容（支持HTML或纯文本）
    private LocalDateTime publishTime; // 发布时间（驼峰命名，对应数据库publish_time）
    private Boolean isShow;          // 是否显示(0-隐藏,1-显示，对应数据库is_show)
    private Integer sortOrder;       // 排序优先级（驼峰命名，对应数据库sort_order）

    // Getter & Setter 方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(LocalDateTime publishTime) {
        this.publishTime = publishTime;
    }

    public Boolean getIsShow() {
        return isShow;
    }

    public void setIsShow(Boolean isShow) {
        this.isShow = isShow;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    @Override
    public String toString() {
        return "Gg{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", publishTime=" + publishTime +
                ", isShow=" + isShow +
                ", sortOrder=" + sortOrder +
                '}';
    }
}